﻿using System;

namespace WorkOrder
{
    public partial class queryMenu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string user = Request.Params["login_ID"];
            if (!string.IsNullOrEmpty(user) && user == "C8587295-B6C0-4B3C-85C4-1B455E712BC5")
            {
                Session.Clear();
                Session.Add("UserID", "14");
                Session.Add("UserName", "访客");
                Session.Add("UserLoginID", "user");
            }
            if (Session["UserID"] == null || Session["UserID"].ToString() == "")
            {
                Session.Clear();
                ClientScript.RegisterClientScriptBlock(this.GetType(), "windowhref", "<script type='text/javascript'>alert('对不起，您还没有登录系统！');window.parent.location.href='../login.aspx';</script>");
            }
            
        }
    }
}
